package per.jdz.demo.dao;

import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import per.jdz.demo.domain.dto.CommonDTO;
import per.jdz.demo.domain.dto.GeoDTO;
import per.jdz.demo.domain.entity.HouseData;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author Jdz
 * @date 2025/1/6
 */
@Mapper
public interface HouseDataMapper extends BaseMapper<HouseData> {
    List<CommonDTO> selectCommonName(Long countyId);

    Long selectCountyId(HouseData houseData);

    GeoDTO selectDistance(@Param("id") Long id, @Param("lat") BigDecimal lat, @Param("lon") BigDecimal lon);

    List<Long> selectIdListByGeo(HouseData houseData);
}
